import request from '@/utils/request'  
import cfg from '@/config/config'
const personnelFiles = {
    //人员档案接口路径
    getPersonList:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getPersonList',param);
    },
    //离职
    quitPerson:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/quitPerson',param);
    },
    //新增
    addPerson:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/addPerson',param);
    },
    //修改
    updatePerson:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/updatePerson',param);
    },
    //消费权限
    getacTypeList:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getacTypeList',param);
    },
    //民族列表
    getNationList:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getNationList',param);
    },
    //籍贯列表
    getNativeList:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getNativeList',param);
    },
    //档案类型下拉列表
    getUserType:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getUserType',param);
    },
    //获取人员编号
    getUserSerial:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getUserSerial',param);
    },
    //根据编号获取人员信息
    getUserById:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/getUserById',param);
    },
    //人员调动
    transferPerson:(param) => {
        return request('post', cfg.apiUrl + 'personnelFiles/transferPerson',param);
    },
    //人员导出
    PersonnelFilesExport:(param) => {
        window.open(cfg.apiUrl + "personnelFiles/PersonnelFilesExport?" + param,"_self");
        //return request('post', cfg.apiUrl + 'personnelFiles/PersonnelFilesExport',param);
    },
}
export default personnelFiles;
